package com.memory.service.impl;

import com.memory.dao.impl.UserDaoImpl1;
import com.memory.dao.impl.UserDaoImpl2;
import com.memory.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * ClassName: UserServiceImpl
 * Package: com.memory.service
 * Description:
 *
 * @Author Memory
 * @Create 2024/8/19 19:03
 * @Version 1.0
 */

@Component
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDaoImpl1 userDaoImpl1;
    // private UserDaoImpl2 userDaoImpl2;

    @Override
    public void sayHello() {
        userDaoImpl1.sayHello();
        // userDaoImpl2.sayHello();
    }

    public void setUserDaoImpl1(UserDaoImpl1 userDaoImpl1) {
        this.userDaoImpl1 = userDaoImpl1;
    }
}
